package savi.jdo;

import javax.jdo.annotations.Inheritance;
import javax.jdo.annotations.InheritanceStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable
@Inheritance(strategy = InheritanceStrategy.SUBCLASS_TABLE)
public class Account {
	
	@PrimaryKey
	@Persistent
	private String googleID;

	@Persistent
	private String name;

	@Persistent
	private String email;

	public Account(String googleID, String name, String email) {
		this.googleID = googleID;
		this.name = name;
		this.email = email;
	}

	public String getGoogleID() {
		return googleID;
	}

	public String getName() {
		return name;
	}

	public String getEmail() {
		return email;
	}

	public void setGoogleID(String googleID) {
		this.googleID = googleID;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setEmail(String email) {
		this.email = email;
	}
}
